﻿namespace RefactorVariables
{
    using System;

    internal class RefactorVariablesMain
    {
        private static void Main()
        {
            double[] arrayForTesting = new double[] { 3, 1, 3, 5, 1, 5, 1, 3 };

            StatisticsProcessor.PrintAllStatisticsFromArray(arrayForTesting, 5);

            Console.WriteLine(new string('-', 10));

            Console.WriteLine(StatisticsProcessor.GetMaxValueFromArray(arrayForTesting, 2));
            Console.WriteLine(StatisticsProcessor.GetMinValueFromArray(arrayForTesting, 2));
            Console.WriteLine(StatisticsProcessor.GetAverageValueOfArrayElement(arrayForTesting, 2));
        }
    }
}